package com.springboot.system.domain.auth;

import java.util.List;

import com.springboot.core.jdbc.annotation.Column;
import com.springboot.core.jdbc.annotation.Table;
import com.springboot.core.web.mvc.BaseEntity;

/**
 * 用户表
 * 
 * @ClassName: UserInfo
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author 252956
 * @date 2021年1月7日 上午9:34:13
 *
 */
@Table("t_sys_user")
public class UserInfo extends BaseEntity {

	@Column(value = "uid", primaryKey = true, autoIncrement = false)
	private String uid;
	@Column(value = "name")
	private String name;
	@Column(value = "password")
	private String password;
	@Column(value = "vsername")
	private String vserName;
	@Column(value = "mobile")
	private String mobile;
	@Column(value = "status")
	private Integer status;// 用户状态1:正常;0:禁用
	@Column(value = "dept_id")
	private Integer deptId;// 部门id
	@Column(value = "job_id")
	private Integer jobId;// 岗位id
	@Column(value = "email")
	private String email;
	private String avatar;
	private String introduction = "hello word";

	private String token;
	private Integer companyId;// 公司id
	private String companyName;// 部门对应的总节点部门（分公司，，集团）
	private String deptName;// 部门名称
	private String jobName;// 岗位名称

	private List<Role> roleList;

	// 角色名集合
	private List<String> roleNameList;
	// 用户拥有的权限code集合
	private List<String> permissionCodeList;
	// 菜单集合
	private List<Permission> menuList;
	// 数据权限范围（1：全部数据权限 2：自定数据权限 3：本部门及以下数据权限4：本部门数据权限 5：本人）
	private Integer datascopeType;
	// 户拥有的数据权限集合
	private List<Integer> datascopeList;

	private ClientInfo clientInfo;

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getVserName() {
		return vserName;
	}

	public void setVserName(String vserName) {
		this.vserName = vserName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getUid() {
		return uid;
	}

	public UserInfo setUid(String uid) {
		this.uid = uid;
		return this;
	}

	public String getName() {
		return name;
	}

	public UserInfo setName(String name) {
		this.name = name;
		return this;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public Integer getJobId() {
		return jobId;
	}

	public void setJobId(Integer jobId) {
		this.jobId = jobId;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public ClientInfo getClientInfo() {
		return clientInfo;
	}

	public void setClientInfo(ClientInfo clientInfo) {
		this.clientInfo = clientInfo;
	}

	public List<Role> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}

	public List<String> getRoleNameList() {
		return roleNameList;
	}

	public void setRoleNameList(List<String> roleNameList) {
		this.roleNameList = roleNameList;
	}

	public List<String> getPermissionCodeList() {
		return permissionCodeList;
	}

	public void setPermissionCodeList(List<String> permissionCodeList) {
		this.permissionCodeList = permissionCodeList;
	}

	public Integer getDatascopeType() {
		return datascopeType;
	}

	public void setDatascopeType(Integer datascopeType) {
		this.datascopeType = datascopeType;
	}

	public List<Integer> getDatascopeList() {
		return datascopeList;
	}

	public void setDatascopeList(List<Integer> datascopeList) {
		this.datascopeList = datascopeList;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public List<Permission> getMenuList() {
		return menuList;
	}

	public void setMenuList(List<Permission> menuList) {
		this.menuList = menuList;
	}

}
